package com.eportal.ORM;

/**
 * FeeViewId entity. @author MyEclipse Persistence Tools
 */

public class FeeViewId implements java.io.Serializable {

	// Fields

	private Integer userid;
	private String feesType;
	private String factor1;
	private String factor2;
	private String factor3;
	private String proportion1;
	private String proportionUp1;
	private String proportion2;
	private String proportion3;
	private String proportionUp2;
	private String proportionUp3;
	private String mpayUsername;
	private String mpayUserid;

	// Constructors

	/** default constructor */
	public FeeViewId() {
	}

	/** full constructor */
	public FeeViewId(Integer userid, String feesType, String factor1,
			String factor2, String factor3, String proportion1,
			String proportionUp1, String proportion2, String proportion3,
			String proportionUp2, String proportionUp3, String mpayUsername,
			String mpayUserid) {
		this.userid = userid;
		this.feesType = feesType;
		this.factor1 = factor1;
		this.factor2 = factor2;
		this.factor3 = factor3;
		this.proportion1 = proportion1;
		this.proportionUp1 = proportionUp1;
		this.proportion2 = proportion2;
		this.proportion3 = proportion3;
		this.proportionUp2 = proportionUp2;
		this.proportionUp3 = proportionUp3;
		this.mpayUsername = mpayUsername;
		this.mpayUserid = mpayUserid;
	}

	// Property accessors

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getFeesType() {
		return this.feesType;
	}

	public void setFeesType(String feesType) {
		this.feesType = feesType;
	}

	public String getFactor1() {
		return this.factor1;
	}

	public void setFactor1(String factor1) {
		this.factor1 = factor1;
	}

	public String getFactor2() {
		return this.factor2;
	}

	public void setFactor2(String factor2) {
		this.factor2 = factor2;
	}

	public String getFactor3() {
		return this.factor3;
	}

	public void setFactor3(String factor3) {
		this.factor3 = factor3;
	}

	public String getProportion1() {
		return this.proportion1;
	}

	public void setProportion1(String proportion1) {
		this.proportion1 = proportion1;
	}

	public String getProportionUp1() {
		return this.proportionUp1;
	}

	public void setProportionUp1(String proportionUp1) {
		this.proportionUp1 = proportionUp1;
	}

	public String getProportion2() {
		return this.proportion2;
	}

	public void setProportion2(String proportion2) {
		this.proportion2 = proportion2;
	}

	public String getProportion3() {
		return this.proportion3;
	}

	public void setProportion3(String proportion3) {
		this.proportion3 = proportion3;
	}

	public String getProportionUp2() {
		return this.proportionUp2;
	}

	public void setProportionUp2(String proportionUp2) {
		this.proportionUp2 = proportionUp2;
	}

	public String getProportionUp3() {
		return this.proportionUp3;
	}

	public void setProportionUp3(String proportionUp3) {
		this.proportionUp3 = proportionUp3;
	}

	public String getMpayUsername() {
		return this.mpayUsername;
	}

	public void setMpayUsername(String mpayUsername) {
		this.mpayUsername = mpayUsername;
	}

	public String getMpayUserid() {
		return this.mpayUserid;
	}

	public void setMpayUserid(String mpayUserid) {
		this.mpayUserid = mpayUserid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof FeeViewId))
			return false;
		FeeViewId castOther = (FeeViewId) other;

		return ((this.getUserid() == castOther.getUserid()) || (this
				.getUserid() != null
				&& castOther.getUserid() != null && this.getUserid().equals(
				castOther.getUserid())))
				&& ((this.getFeesType() == castOther.getFeesType()) || (this
						.getFeesType() != null
						&& castOther.getFeesType() != null && this
						.getFeesType().equals(castOther.getFeesType())))
				&& ((this.getFactor1() == castOther.getFactor1()) || (this
						.getFactor1() != null
						&& castOther.getFactor1() != null && this.getFactor1()
						.equals(castOther.getFactor1())))
				&& ((this.getFactor2() == castOther.getFactor2()) || (this
						.getFactor2() != null
						&& castOther.getFactor2() != null && this.getFactor2()
						.equals(castOther.getFactor2())))
				&& ((this.getFactor3() == castOther.getFactor3()) || (this
						.getFactor3() != null
						&& castOther.getFactor3() != null && this.getFactor3()
						.equals(castOther.getFactor3())))
				&& ((this.getProportion1() == castOther.getProportion1()) || (this
						.getProportion1() != null
						&& castOther.getProportion1() != null && this
						.getProportion1().equals(castOther.getProportion1())))
				&& ((this.getProportionUp1() == castOther.getProportionUp1()) || (this
						.getProportionUp1() != null
						&& castOther.getProportionUp1() != null && this
						.getProportionUp1()
						.equals(castOther.getProportionUp1())))
				&& ((this.getProportion2() == castOther.getProportion2()) || (this
						.getProportion2() != null
						&& castOther.getProportion2() != null && this
						.getProportion2().equals(castOther.getProportion2())))
				&& ((this.getProportion3() == castOther.getProportion3()) || (this
						.getProportion3() != null
						&& castOther.getProportion3() != null && this
						.getProportion3().equals(castOther.getProportion3())))
				&& ((this.getProportionUp2() == castOther.getProportionUp2()) || (this
						.getProportionUp2() != null
						&& castOther.getProportionUp2() != null && this
						.getProportionUp2()
						.equals(castOther.getProportionUp2())))
				&& ((this.getProportionUp3() == castOther.getProportionUp3()) || (this
						.getProportionUp3() != null
						&& castOther.getProportionUp3() != null && this
						.getProportionUp3()
						.equals(castOther.getProportionUp3())))
				&& ((this.getMpayUsername() == castOther.getMpayUsername()) || (this
						.getMpayUsername() != null
						&& castOther.getMpayUsername() != null && this
						.getMpayUsername().equals(castOther.getMpayUsername())))
				&& ((this.getMpayUserid() == castOther.getMpayUserid()) || (this
						.getMpayUserid() != null
						&& castOther.getMpayUserid() != null && this
						.getMpayUserid().equals(castOther.getMpayUserid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserid() == null ? 0 : this.getUserid().hashCode());
		result = 37 * result
				+ (getFeesType() == null ? 0 : this.getFeesType().hashCode());
		result = 37 * result
				+ (getFactor1() == null ? 0 : this.getFactor1().hashCode());
		result = 37 * result
				+ (getFactor2() == null ? 0 : this.getFactor2().hashCode());
		result = 37 * result
				+ (getFactor3() == null ? 0 : this.getFactor3().hashCode());
		result = 37
				* result
				+ (getProportion1() == null ? 0 : this.getProportion1()
						.hashCode());
		result = 37
				* result
				+ (getProportionUp1() == null ? 0 : this.getProportionUp1()
						.hashCode());
		result = 37
				* result
				+ (getProportion2() == null ? 0 : this.getProportion2()
						.hashCode());
		result = 37
				* result
				+ (getProportion3() == null ? 0 : this.getProportion3()
						.hashCode());
		result = 37
				* result
				+ (getProportionUp2() == null ? 0 : this.getProportionUp2()
						.hashCode());
		result = 37
				* result
				+ (getProportionUp3() == null ? 0 : this.getProportionUp3()
						.hashCode());
		result = 37
				* result
				+ (getMpayUsername() == null ? 0 : this.getMpayUsername()
						.hashCode());
		result = 37
				* result
				+ (getMpayUserid() == null ? 0 : this.getMpayUserid()
						.hashCode());
		return result;
	}

}